import {request} from "@/network/request";

export function getHomeAllData() {
	return request({
		url: '/api/index',
		method: 'GET',
	}).then(err => {
		return err;
	})
}

export function getHomeGoods(type = 'sales', page = 1) {
	return request({
		url: `/api/index?${type}=1&page=${page}`
	})
}